package com.eric.rabbitmq.hello;

import com.eric.rabbitmq.config.RabbitSimpleConfig;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author chenw-i
 * @version 1.0.0
 * @ClassName HelloReceiver.java
 * @Description TODO
 * @createTime 2020年07月29日 15:58:00
 */
@Component
@RabbitListener(queues = RabbitSimpleConfig.QUEUE_HELLO)
public class HelloReceiver2 {
    @RabbitHandler
    public void process(String hello) {
        System.out.println("Receiver2  : " + hello);
    }
}
